/**
 * 所有版权归 广西梧州 陈锦韬 所有
 *
 * @Title: LoginController
 * @Package com.rx.uua.controller
 * @Description: 登录
 * @author: 陈锦韬
 * @date: 2021\6\26 0026
 * @version V1.0
 * @Copyright: 2021 陈锦韬  All rights reserved.
 */
package com.rx.zuul.controller;

import com.rx.core.base.RxBaseConstant;
import com.rx.core.base.RxBaseController;
import com.rx.core.base.RxResponse;
import com.rx.zuul.bean.LoginInfo;
import com.rx.zuul.bean.LoginInfoVo;
import com.rx.zuul.service.LoginService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: Administrator
 * @Description: 登录
 * @date: 2021\6\26 0026
 */
@RestController
public class LoginController extends RxBaseController {

    @Autowired
    LoginService loginService;

    @PostMapping("/login")
    public LoginInfo loginSuccess(@RequestBody LoginInfoVo loginInfoVo){
        return loginService.login(loginInfoVo);
    }
    @PostMapping("/api/plat/org-description")
    public Object description(@RequestBody LoginInfoVo loginInfoVo){
        return RxResponse.ok();
    }
}
